package com.cy.service.impl;

import com.cy.dao.UserDAO;
import com.cy.service.UserService;

public class UserServiceImpl implements UserService {
	private UserDAO userDao;

	public UserDAO getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDAO userDao) {
		this.userDao = userDao;
	}

	public boolean checkAuthority(String name, String paw) {
		if(name==null || name.trim().equals("")
				||paw==null || paw.trim().equals(""))
		{
			return false;
		}
		else
		{
			return userDao.checkAuthority(name,paw);
		}
		
		
	}

}
